﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Text;


namespace GrouponDesktop
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            GrouponDesktop.leerConfiguracion lC = new GrouponDesktop.leerConfiguracion();


            //PATH: MAQUINA VIRTUAL.
            //string fechaHoy = lC.leerConfig("C:\\Documents and Settings\\sa\\Desktop\\TP Gestion 2012\\Aplicacion Desktop\\GrouponDesktop\\config.txt");

            //PATH: PC-TOMY RIVER:
            //leerConfiguracion.vglobales configuracion = lC.leerConfig();

            string ConectionString = @"Data Source=" + variablesGlobales.Configuracion.ip + ";Initial Catalog="+variablesGlobales.Configuracion.base_datos + ";User Id="+ variablesGlobales.Configuracion.usuario + ";Password=" + variablesGlobales.Configuracion.contraseña;

            BDConnection.Connect(ConectionString);


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MenuLogin());

            BDConnection.CloseConnection();
        }


    }
}
